package com.zws.cucumber.adaptation.cass;

import java.util.Objects;

public enum ZwsCqlDmlType {
    Select,
    Insert,
    Update,
    Delete,
    ;

    public static ZwsCqlDmlType of(String str) {
        if (Objects.nonNull(str)) {
            for (ZwsCqlDmlType en : values()) {
                if (str.equalsIgnoreCase(en.toString())) {
                    return en;
                }
            }
        }
        return null;
    }

}
